Skip to content

Update to latest version 2023-10-31 #45151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
May 19, 2025

Conversation

Vidyashreebn
Copy link
Contributor

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@azure-sdk
Copy link
Collaborator

azure-sdk commented May 2, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

com.azure:azure-digitaltwins-core

@Vidyashreebn
Copy link
Contributor Author

image

@azure-sdk
Copy link
Collaborator

API change check

APIView has identified API level changes in this PR and created following API reviews.

com.azure:azure-digitaltwins-core

@Vidyashreebn Vidyashreebn requested a review from alzimmermsft May 16, 2025 15:17
@Vidyashreebn Vidyashreebn enabled auto-merge (squash) May 19, 2025 13:50
@Vidyashreebn Vidyashreebn merged commit 6afcc31 into main May 19, 2025
32 checks passed
@Vidyashreebn Vidyashreebn deleted the dev/digitaltwins/vidyashreeb/update-to-2023-10-31 branch May 19, 2025 17:11
@Get("/jobs/imports")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ErrorResponseException.class)
Mono<Response<ImportJobCollection>> list(@HostParam("$host") String host,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are new APIs that are not added to the public client. With the new service version, these new APIs should be exposed in DigitalTwinsClient and DigitalTwinsAsyncClient.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. These are autogenerated and moreover none from DigitalTwinImpl.java are exposed in DigitalTwinsClient and DigitalTwinsAsyncClient

Comment on lines +1552 to +1565
String nextLinkToUse;
try (JsonReader jsonReader = JsonProviders.createReader(nextLink)) {
Object untyped = jsonReader.readUntyped();

if (untyped instanceof List || untyped instanceof Map || untyped instanceof String) {
nextLinkToUse = nextLink;
} else {
nextLinkToUse = serializeNextLink(nextLink);
}
} catch (IOException ex) {
nextLinkToUse = serializeNextLink(nextLink);
}

QuerySpecification querySpecification = new QuerySpecification().setContinuationToken(nextLinkToUse);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the nextLink changed? Is this backward compatible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alzimmermsft has more context on this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srnagar, yes, this change was needed to maintain a piece of backwards compatibility after Digital Twins was migrated to azure-json.

Effectively, a lot of the original Digital Twins SDK was developed with "anything" can be passed so there are a lot of checks to validate and appropriately handle customer inputs. This is just a check for that on the continuation token.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants